package com.huanmeiqi.drools.demo.quickstart;

/**
 * Fact类
 */
public class Product {
    /**
     * 钻石
     */
    public static final String DIAMOND = "DIAMOND";

    /**
     * 黄金
     */
    public static final String GOLD = "GOLD";

    /**
     * 类型
     */
    private String type;

    /**
     * 折扣
     */
    private int discount;

    public static String getDIAMOND() {
        return DIAMOND;
    }

    public static String getGOLD() {
        return GOLD;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getDiscount() {
        return discount;
    }

    public void setDiscount(int discount) {
        this.discount = discount;
    }

    @Override
    public String toString() {
        return "Product{" +
                "type='" + type + '\'' +
                ", discount=" + discount +
                '}';
    }
}
